<?php
/*------------------------------------------------------------------------
# com_vportfolio - Vportfolio component
# ------------------------------------------------------------------------
# author    Vsmart Extensions
# copyright Copyright (C) 2010 www.vsmart-extensions.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.vsmart-extensions.com
# Technical Support:  Forum - http://www.vsmart-extensions.com
-------------------------------------------------------------------------*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$url = JURI::base();?>

<?php 

$k = JRequest::getVar('limitstart',	0,'', 'int');
for($h=0;$h<sizeof($this->items);$h++) :?>



<div style="float:left;margin-top:10px;">
      <div class="productBox">
	     <div class="boxDes">
		    <div class="titleProduct">
				<?php echo $this->items[$h]->title; ?>
			</div><br />
          
        </div>
		<div class="boxImage"><div class="boxImageInner">
			<?php if ($this->config->cf_click_to_thumb_image && $this->items[$h]->image->imageName != '') : ?>
			
			<a rel="prettyPhoto[gallery<?php echo $h?>]" href="<?php echo $url."components/com_vportfolio/images/".$this->items[$h]->id."/".$this->items[$h]->image->imageName; ?>"><img src="<?php echo $url."components/com_vportfolio/images/".$this->items[$h]->id."/".$this->items[$h]->image->imageName; ?>" border="0" alt="<?php echo $this->items[$h]->images[0]->imageTitle; ?>" /></a>
        	<div class="sub-image-hidden">
        	<?php
				for($j=1; $j<sizeof($this->itemPortpolioArray[$h]);$j++){
				?>
                	<a rel="prettyPhoto[gallery<?php echo $h?>]" href="<?php echo $url."components/com_vportfolio/images/".$this->items[$h]->id."/".$this->itemPortpolioArray[$h][$j]->imageName; ?>"  ><img src="<?php echo $url."components/com_vportfolio/images/".$this->items[$h]->id."/".$this->itemPortpolioArray[$h][$j]->imageName; ?>" border="0" alt="<?php echo $this->itemPortpolioArray[$h][$j]->imageTitle; ?>" /></a>
                <?php
				}
			?>
			</div>

			
			<?php else : ?> 
			
			<a href="<?php echo $this->items[$h]->link; ?>" >
            	<?php if($this->items[$h]->image){ ?>        			
					<img src="<?php echo $url."components/com_vportfolio/images/".$this->items[$h]->id."/".$this->items[$h]->image->imageName; ?>" border="0" />
										
                 <?php } else{ ?>
                 	<img src="<?php echo $url."components/com_vportfolio/images/no_image.gif"; ?>" border="0"/>
                 <?php } ?>
            </a>
			<?php endif;?>
        </div></div>
       <!-- <div class="boxDes">
		    <div class="titleProduct">
				<?php echo $this->items[$h]->title; ?>
			</div>
            <div class="desProduct">
				<?php echo $this->items[$h]->description; ?>&nbsp;
				<?php if($this->items[$h]->url != '') : ?>
				<p>Visit website : <a title="" target="_self" href="<?php //echo $this->items[$h]->url ?>" class="caption"><?php //echo $this->items[$h]->url ?></a></p>
				<?php endif; ?>
			</div> 
            <a class="viewdetail" href="<?php //echo $this->items[$h]->link; ?>">View Detail</a>
        </div>-->
			<br class="clear_both" />
        </div>
		
</div>

<?php endfor; ?>
